/**
 * serial_stream.h
 *
 *  Created on: 2019-11-26
 *      Author: chenshisheng
 */

#ifndef STREAM_SERIAL_STREAM_H_
#define STREAM_SERIAL_STREAM_H_

#include "stream/io_stream.h"
#include "serial.h"

typedef IoStream_t SerialStream_t;

int SerialStream_Init(SerialStream_t *ss, Serial_t serial);
static inline void SerialStream_DeInit(SerialStream_t *ss)
{
    Stream_DeInit(& ss->stream);
}

#endif /* STREAM_SERIAL_STREAM_H_ */
